#include <iostream>
#include <cstring>
#include <algorithm>
#include <cstdio>

using namespace std;

int main()
{
	int n;
	cin >> n;
	if((n & 1) == 0 && n > 2) puts("YES");
	else puts("NO");
	return 0;
}